
let sickperson=sessionStorage.getItem("sickperson");
const sickpersonStore = defineStore(
  'sickperson',
  {
    state: () => ({
      sickperson: sickperson?JSON.parse(sickperson):{}
    }),
    actions: {
      // 设置当前手术
      setSickperson( value) {
        sessionStorage.setItem("sickperson",JSON.stringify(value));
        this.sickperson=value
      }
    }
  })

export default sickpersonStore
